// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.services' is found in services.js
// 'starter.controllers' is found in controllers.js
angular.module('start', ['ionic', 'starter.controllers', 'starter.server'])

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
      cordova.plugins.Keyboard.disableScroll(true);

    }
    if (window.StatusBar) {
      // org.apache.cordova.statusbar required
      StatusBar.styleDefault();
    }
  });
})

.config(function($stateProvider, $urlRouterProvider,$ionicConfigProvider) {

 $ionicConfigProvider.platform.ios.tabs.style('standard');$ionicConfigProvider.platform.ios.tabs.position('bottom');$ionicConfigProvider.platform.android.tabs.style('standard');$ionicConfigProvider.platform.android.tabs.position('bottom');
  // Ionic uses AngularUI Router which uses the concept of states
  // Learn more here: https://github.com/angular-ui/ui-router
  // Set up the various states which the app can be in.
  // Each state's controller can be found in controllers.js
  $stateProvider
  //.state('app.tabs', {
  //    url: '/tabs',
  //    templateUrl: 'template/tabs.html',
  //    controller: 'tabc'
  //  })

      .state('app', {
        url: '/app',
        //abstract: true,
        templateUrl: 'template/nonav.html',
      })

      .state('app.tabs', {
        url: '/tabs',
        views: {
          'appcontent': {
            templateUrl: 'template/tabs.html',
            controller: 'tabc'
          }
        }
      })

      .state('app.bangzhuzhongxin', {
        url: '/bangzhuzhongxin',
        views: {
          'appcontent': {
            templateUrl: 'template/my_bangzhuzhongxin.html',
            // controller: 'myc'
          }
        }
      })

      .state('app.home', {
        url: '/home',
        views: {
          'appcontent': {
            templateUrl: 'template/home.html',
            controller: 'homec'
          }
        }
      })

      .state('app.tabs.zhuce', {
        url: '/zhuce',
        views: {
          'tab-home': {
            templateUrl: 'template/zhuce.html',
            controller: 'zhucec'
          }
        }
      })

      .state('app.tabs.zhuceb', {
        url: '/zhuceb',
        views: {
          'tab-home': {
            templateUrl: 'template/zhuceb.html',
            // controller: 'zhucec'
          }
        }
      })

      .state('app.tabs.tishenedu_home', {
        url: '/tishenedu_home',
        views: {
          'tab-home': {
            templateUrl: 'template/account_tishenedu.html',
            // controller: 'zhucec'
          }
        }
      })

      .state('app.tabs.haikuangmingxi', {
        url: '/haikuangmingxi',
        views: {
          'tab-home': {
            templateUrl: 'template/home_haikuangmixing.html',
            // controller: 'zhucec'
          }
        }
      })

      .state('app.tabs.shops', {
        url: '/shops',
        views: {
          'tab-home': {
            templateUrl: 'template/shops.html',
            // controller: 'shopscc'
          }
        }
      })

      .state('app.tabs.shop', {
        url: '/shop',
        views: {
          'tab-home': {
            templateUrl: 'template/shop.html',
            // controller: 'shopscc'
          }
        }
      })

      .state('app.tabs.haikuang', {
        url: "/haikuang",
        views: {
          'tab-home': {
            templateUrl: "template/haikuang.html",
            controller:'haikuangcc'
          }
        }
      })

      .state('app.tabs.home_jiekuang', {
        url: "/home_jiekuang",
        views: {
          'tab-home': {
            templateUrl: "template/home_jiekuang.html",
            controller:'home_jiekuangc'
          }
        }
      })


      .state('app.tabs.home_jilu', {
        url: "/home_jilu",
        views: {
          'tab-home': {
            templateUrl: "template/home_haikuanjilu.html",
            controller:'home_haikuanjilucc'
          }
        }
      })



      .state('app.tabs.account', {
        url: '/account',
        views: {
          'tab-account': {
            templateUrl: 'template/account.html',
            controller: 'accountc'
          }
        }
      })

  .state('app.tabs.tishenedu', {
    url: '/tishenedu',
    views: {
      'tab-account': {
        templateUrl: 'template/account_tishenedu.html',
        // controller: 'zhucec'
      }
    }
  })



  .state('app.tabs.youhuiquan', {
    url: '/youhuiquan',
    views: {
      'tab-account': {
        templateUrl: 'template/account_youhuiquan.html',
        // controller: 'zhucec'
      }
    }
  })

  .state('app.tabs.yinhangka', {
    url: '/yinhangka',
    views: {
      'tab-account': {
        templateUrl: 'template/account_yinhangka.html',
        // controller: 'zhucec'
      }
    }
  })




  .state('app.tabs.haikuangmingxi2', {
    url: '/haikuangmingxi2',
    views: {
      'tab-account': {
        templateUrl: 'template/home_haikuangmixing.html',
        // controller: 'zhucec'
      }
    }
  })


  .state('app.tabs.haikuang_account', {
          url: "/haikuang_account",
          views: {
            'tab-account': {
              templateUrl: "template/haikuang.html",
              controller:'haikuangcc'
            }
          }
        })



  .state('app.tabs.account_jilu', {
          url: "/account_jilu",
          views: {
            'tab-account': {
              templateUrl: "template/home_haikuanjilu.html",
              controller:'home_haikuanjilucc'
            }
          }
        })


  .state('app.tabs.discovery', {
    url: '/discovery',
    views: {
      'tab-discovery': {
        templateUrl: 'template/discovery.html',
        controller: 'discoveryc'
      }
    }
  })


  


  .state('app.tabs.discovery_yaoqingjilu_4_14', {
    url: '/discovery_yaoqingjilu_4_14',
    views: {
      'tab-discovery': {
        templateUrl: 'template/discovery_yaoqingjilu_4_14.html',
        // controller: 'discoveryc'
      }
    }
  })

  
  .state('app.tabs.discovery_fujinderen_4_13', {
    url: '/discovery_fujinderen_4_13',
    views: {
      'tab-discovery': {
        templateUrl: 'template/discovery_fujinderen_4_13.html',
        // controller: 'discoveryc'
      }
    }
  })

  .state('app.tabs.discovery_yaoqingyoujiang_4_13', {
    url: '/discovery_yaoqingyoujiang_4_13',
    views: {
      'tab-discovery': {
        templateUrl: 'template/discovery_yaoqingyoujiang_4_13.html',
        // controller: 'discoveryc'
      }
    }
  })

  .state('app.tabs.discovery_heimingdang_4_13', {
    url: '/discovery_heimingdang_4_13',
    views: {
      'tab-discovery': {
        templateUrl: 'template/discovery_heimingdang_4_13.html',
        // controller: 'discoveryc'
      }
    }
  })




      .state('app.tabs.my', {
        url: '/my',
        views: {
          'tab-my': {
            templateUrl: 'template/my.html',
            controller: 'myc'
          }
        }
      })

      .state('app.tabs.zhuce2', {
        url: '/zhuce2',
        views: {
          'tab-my': {
            templateUrl: 'template/zhuce.html',
            controller: 'zhucec'
          }
        }
      })



      .state('app.tabs.anquanbaozhang', {
        url: '/anquanbaozhang',
        views: {
          'tab-my': {
            templateUrl: 'template/my_anquanbaozhang.html',
            // controller: 'myc'
          }
        }
      })

      .state('app.tabs.guanyuwomen', {
        url: '/guanyuwomen',
        views: {
          'tab-my': {
            templateUrl: 'template/my_guanyuwomen.html',
            // controller: 'myc'
          }
        }
      })

      .state('app.tabs.gerenshezhi', {
        url: '/gerenshezhi',
        views: {
          'tab-my': {
            templateUrl: 'template/my_gerenshezhi.html',
            // controller: 'myc'
          }
        }
      })

      .state('app.tabs.gerenxiaoxi', {
        url: '/gerenxiaoxi',
        views: {
          'tab-my': {
            templateUrl: 'template/my_gerenxiuxi.html',
            // controller: 'myc'
          }
        }
      })

      .state('app.tabs.shimingrenzheng', {
        url: '/shimingrenzheng',
        views: {
          'tab-my': {
            templateUrl: 'template/my_shimingrenzheng.html',
            // controller: 'myc'
          }
        }
      })

      .state('app.tabs.my_chushengriqishezhi_4_13', {
        url: '/my_chushengriqishezhi_4_13',
        views: {
          'tab-my': {
            templateUrl: 'template/my_chushengriqishezhi_4_13.html',
            // controller: 'myc'
          }
        }
      })

      .state('app.tabs.my_nichengshezhi_4_13', {
        url: '/my_nichengshezhi_4_13',
        views: {
          'tab-my': {
            templateUrl: 'template/my_nichengshezhi_4_13.html',
            // controller: 'myc'
          }
        }
      })

      .state('app.tabs.my_xingbieshezhi_4_13', {
        url: '/my_xingbieshezhi_4_13',
        views: {
          'tab-my': {
            templateUrl: 'template/my_xingbieshezhi_4_13.html',
            // controller: 'myc'
          }
        }
      })

      .state('app.tabs.my_zhedieliebiao_4_13', {
        url: '/my_zhedieliebiao_4_13',
        views: {
          'tab-my': {
            templateUrl: 'template/my_zhedieliebiao_4_13.html',
            // controller: 'myc'
          }
        }
      })


      .state('app.tabs.xitongshezhi', {
        url: '/xitongshezhi',
        views: {
          'tab-my': {
            templateUrl: 'template/my_xitongshezhi.html',
            // controller: 'myc'
          }
        }
      });

      $urlRouterProvider.otherwise('#/app/tabs/home');

  // if none of the above states are matched, use this as the fallback
  // $urlRouterProvider.otherwise('/tab/home');

});



